package com.funtl.hello.spring.cloud.alibaba.rocketmq.provider.service;

import com.funtl.hello.spring.cloud.alibaba.rocketmq.provider.source.MySource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.messaging.MessageChannel;
import org.springframework.messaging.support.MessageBuilder;
import org.springframework.stereotype.Service;

/**
 * @Description :
 * @Author 刘龙
 * @Date 2020/3/30 20:22
 * @Version 1.0
 **/
@Service
public class ProviderService {
    @Autowired
    private MySource source;

    public void send1(String message) {
        source.output1().send(MessageBuilder.withPayload(message).build());
    }
}
